import 'package:xreader/generated/json/base/json_field.dart';
import 'package:xreader/generated/json/t_book_entity.g.dart';
import 'dart:convert';
import 'package:xreader/model/t_book_cont_entity.dart';

@JsonSerializable()
class TBookEntity {

	int? id;
	String? phk;
	String? bname;
	String? bauthor;
	String? bchao;
	int? bcount;
	int? bstatus;
	int? border;//排序号
  String? bsign;//md5摘要
  String? bdesc;//简介
  int? tmsec;//远程同步时间戳-秒
  List<TBookContEntity>? chapters;

  TBookEntity();

  factory TBookEntity.fromJson(Map<String, dynamic> json) => $TBookEntityFromJson(json);

  Map<String, dynamic> toJson() => $TBookEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}